home *** CD-ROM | disk | FTP | other *** search
- .\" FILE
- .\" new-amiint.doc
- .\"
- .\" DESCRIPTION
- .\" Description of command language for ~postgres/bin/amiint
- .\"
- .\" RCS ID
- .\" $Header: /private/postgres/doc/implementation/RCS/new-amiint.doc,v 1.1 1990/07/30 13:50:34 kemnitz Exp $
- .\"
- %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-
- The following are valid statements/queries in amiint.
- The single character versions exist to maintain compatibility
- with old amiint scripts but will eventually cease to exist (maybe)
-
- Those commands whose names have been changed have their old
- syntax listed for reference.
-
- %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-
-
- open <relation>
- o <relation>
- open the named relation
-
- open <relation> (<field1>=<type1>,... )
- open (and create the file ) for the relation named <relation>
- with the field/type given in the parentheses
-
- close <relation>
- c <relation>
- close the named relation
-
- display relation
- displays the contents of pg_relation
-
- create <relation> ( <field>=<type> , ...)
- create the relation with the types defined
- formerly "t <ntypes> <field1> <type1> ... <fieldn> <typen>"
-
- destroy <relation>
- destroy the named relation
- formerly ".D <relation>"
-
- rename relation <relation1> as <relation2>
- rename relation 1 as relation2
- formerly ".RR <relation1> <relation2>
-
- rename attribute <attr1> as <attr2> in <relation>
- rename attr1 to become attr2 in relation named <relation>
- formerly ".RA <relation> <attr1> <attr2>
-
- add (<field1>=<type1>, ... <fieldn>=<typen>) to <relation>
- formerly ".A <relation> <field1> <type1> ... <fieldn> <typen>"
-
- define macro <macroname> = <literal-value>
- define a macro with the literal <macroname>
- as the value <literal-value>
-
- insert oid = <value> (<value1>, ... <valuen>)
- insert a tuple with oid of <value>
-
- insert (<value1>, ... <valuen>)
- insert a tuple with an arbitrary oid
-
- %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-
- Goodies that are yet to come (ie currently unimplemented features):
-
- %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-
- insert field1=value1,fieldn=valuen (<....>)
- insert lock = <value> (<value1>, ...<valuen>)
-
- define function foo as ( ...)
-
- open pg_function
- insert (foobar,6,3,t,t,t,<filename>)
-
- define macro <macroname> from file <filename>
- define macro <macroname> <function-name>(parameters)
-
- define macro abc "xyz abc def xyz \n
- dsafasdfasdf
- ... "
-
- define lisp-function "......."
- define c-function "......"
- define lisp-function from file " ..."
-
- define macro <macroname> = compile-file ("...")
-